package com.dfqy.service;

import com.dfqy.dao.AdminDAO;
import com.dfqy.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginService {

    @Autowired
    private AdminDAO dao;

    public Admin selectAdmin(String uName) {

        Admin admin = dao.selectAdmin(uName);
        return admin;
    }
}
